<?php

if (!isset($_GET['ip']))
{
	define("dir",dirname(dirname(dirname(__FILE__)))."/");
	
	$_CONF = array
	(
		'http' => '',
		'host' => '',
		'path' => '',
		'info.build' => '',
	);	
	require_once dir . "include/init.inc.php";
	
	if (!App::isStaff())
	{
		exit('No Dice!');
	}
	 
	$_SESSION['debug'] = 'letsdothis'; 

	header("Location: ../..");
	exit;
}
else 
{
	define("PHPFOX_DIR",dirname(dirname(dirname(__FILE__)))."/");
	
	session_start();
	 
	require_once PHPFOX_DIR . "plugins/system/init.php";
	require_once PHPFOX_DIR . "include/settings/server.sett.php";
	
	$_SESSION['debug'] = 'letsdothis';
	
	header("Location: http://" . $_CONF['host']);
	exit;
}

?>